package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 照片墙行列配置对象 t_photo_wall_config
 * 
 * @author wp
 * @date 2023-08-10
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
@ToString
@Accessors(chain = true)
@TableName(value = "t_photo_wall_config", excludeProperty = "remark")
public class PhotoWallConfig extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /** 行数 */
    @TableField("`row`")
    @Excel(name = "行数")
    private Integer row;

    /** 列数 */
    @Excel(name = "列数")
    private Integer col;

    public PhotoWallConfig(Integer row, Integer col) {
        this.row = row;
        this.col = col;
    }

    public PhotoWallConfig(Long createBy) {
        setCreateBy(String.valueOf(createBy));
    }
}
